﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WoChu.CF.Base;
using WoChu.RfClient.Entity;

namespace WoChu.RfClient.Duty
{
    [ServiceName(Name = "LocationGoods")]
    public interface ILocationGoods
    {

        [Mapping(MethodUrl = "/ILocationGoods/SetLocationGoods?userID={0}")]
        OutPutParams<bool> SetLocationGoods(string userID, List<LocationGoodsInfo> lstLocationGoods);

        [Mapping(MethodUrl = "/ILocationGoods/SetLocationGoodsSort?userID={0}")]
        OutPutParams<bool> SetLocationGoodsSort(string userID, List<LocationGoodsInfo> lstLocationGoods);

        [Mapping(MethodUrl = "/ILocationGoods/LocationGoodsMove?userID={0}&locationCode={1}")]
        OutPutParams<bool> LocationGoodsMove(string userID, string locationCode, List<LocationGoodsInfo> lstLocationGoods);

        [Mapping(MethodUrl = "/ILocationGoods/GetLocationALLGoods?goodsCode={0}&goodsCode3={1}&locationCode={2}")]
        List<LocationGoodsInfo> GetLocationALLGoods(string goodsCode, string goodsCode3, string locationCode);

        [Mapping(MethodUrl = "/ILocationGoods/GetGoodsInfoByBarCode?goodsCode={0}")]
        string GetGoodsInfoByBarCode(string goodsCode);

        [Mapping(MethodUrl = "/ILocationGoods/LocationGoodsInfoByCode?goodsCode={0}&goodsCode3={1}")]
        string LocationGoodsInfoByCode(string goodsCode, string goodsCode3);

        [Mapping(MethodUrl = "/ILocationGoods/GetGoodsInfoNeedCollection?goodsCode={0}")]
        GoodsAllInfo GetGoodsInfoNeedCollection(string goodsCode);

        [Mapping(MethodUrl = "/ILocationGoods/UpdateGoodsBarCode")]
         bool UpdateGoodsBarCode(List<GoodsAllInfo> lstGoods);

        [Mapping(MethodUrl = "/ILocationGoods/ExistLoctionGoodsByLocationCode?code={0}")]
        LocationGoodsInfo ExistLoctionGoodsByLocationCode(string code);

        [Mapping(MethodUrl = "/ILocationGoods/ExistLoctionGoodsByGoodsCode?code={0}")]
        LocationGoodsInfo ExistLoctionGoodsByGoodsCode(string code);

        [Mapping(MethodUrl = "/ILocationGoods/DeleteLoctionGoodsRelation?locationGoodsId={0}")]
        bool DeleteLoctionGoodsRelation(int locationGoodsId);
    }
}
